<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jquery/jquery1.9/jquery-1.9.0.js"></script>
    <script>
        $(function(){
            $(".send").click(function(){
                var str=$(".txt").val();
                $(".myword").html(str);
            });
        });
    </script>
</head>
<body>
    <div>写下你最喜欢的一句话：<span class="myword"></span></div>
    <div>
        <input type="text" class="txt"><input type="button" value="send" class="send">
    </div>
</body>
</html>